<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        div {
            position: absolute;
            top: 100px;
            left: 100px;
            width: 100px;
            height: 100px;
            padding: 20px;
            margin: 40px;
            border: 3px solid #ccc;
        }

        body {
            height: 10000px;
        }
    </style>
</head>

<body>
    <div></div>
    <input type="text">
    <script src="./js/jquery.min.js"></script>
    <script>
        // .scrollTop() 如果传递参数 表示设置页面卷动值 否则表示获取页面卷动值
        // $(window).scroll(function () {
        //     console.log($(window).scrollTop())
        // })

    </script>
</body>

</html>